package com.wanxi.service;

import com.wanxi.dao.ImageShowDao;
import com.wanxi.dao.NavDao;
import com.wanxi.dao.ProductDao;
import com.wanxi.model.ImageShowModel;
import com.wanxi.model.NavModel;
import com.wanxi.model.ProductModel;

import java.util.List;

public class ProductService {
    NavDao navDao=new NavDao();
    //    获取头部所有标签
    public List<NavModel> getNavModelList() {
        return navDao.getAllNav();
    }
//    获取产品对应的图片
    public List<ImageShowModel> getProductImageModelList() {
        ImageShowDao imageShowDao=new ImageShowDao();
        return imageShowDao.getProduct();
    }
//    获取产品信息列表
    public List<ProductModel> getProductModelList() {
        ProductDao productDao=new ProductDao();
        return productDao.getProduct();
    }
//    获取产品页面的标签
    public List<NavModel> getProductNavModelList() {
        return navDao.getProductNav();
    }
}
